Zepto(function ($) {

    $.init()
});

function clickItem(name,callBack) {
    $(document).on('click',name,callBack);
}

/*js获取地址栏的参数*/
function GetQueryStringLan(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null)return unescape(r[2]);
    return null;
}
//
// pushHistory();
window.addEventListener("popstate", function (e) {
    window.history.go(-1);
}, false);

function pushHistory() {
    var courseId = GetQueryString("CourseID");
    var state = {
        title: "title",
        url: "#"
    };
    window.history.pushState(state, "title", "#");
}